var index = 1
var title = document.getElementsByClassName('menuTitle')[0]
window.onload = function () {
    if (index == 1) {
        title.onclick = function () {
            document.getElementsByClassName('menuList')[0].style.display = 'block'
            index++
        }
    } else {
        title.onclick = function () {
            document.getElementsByClassName('menuList')[0].style.display = 'none'
            index = 1
        }
    }
}